package model

import (
	"gorm.io/gorm"
	"time"
)

type Shop struct {
	Id        uint           `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Name      string         `gorm:"column:name;type:varchar(255);not null;" json:"name"`
	Price     float64        `gorm:"column:price;type:decimal(10,2);not null;" json:"price"`
	BoosId    int            `gorm:"column:boos_id;type:int(10);not null;" json:"boos_id"`
	Info      string         `gorm:"column:info;type:varchar(255);not null;" json:"info"`
	Num       int            `gorm:"column:num;type:int(10);not null;" json:"num"`
	CommentId int            `gorm:"column:comment_id;type:int(10);not null;" json:"comment_id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;default:NULL;" json:"deleted_at"`
}
